package com.squirrels.server.entity;

import lombok.Data;

import java.net.InetSocketAddress;

/**
 * 创建者: FlyingSquirrels
 * 创建时间: 2024/8/26 10:41
 * 描述: 房间用户
 */
@Data
public class RoomUser {
    private long uid;
    private InetSocketAddress sender;
    private int source;
    private String name;
    // 最新发送数据包时间
    private long timestamp;
    public RoomUser(InetSocketAddress sender,long uid,String name){
        this.sender = sender;
        source = 0;
        this.uid = uid;
        this.name = name;
    }
}
